﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("FAQs")]
    public class FAQs: IEntity<int>
    {
        public int ID { get; set; }
        /// <summary>
        /// 问题标题
        /// </summary>
        [Required]
        [StringLength(50)]
        public string AskTitle { get; set; }
        /// <summary>
        /// 提问时间
        /// </summary>
        public DateTime AskTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 问题内容
        /// </summary>
        public string AskContent { get; set; }
        /// <summary>
        /// 回答内容
        /// </summary>
        public string AnswerContent { get; set; }
        /// <summary>
        /// 提问用户ID
        /// </summary>
        public long UserID { get; set; }
        /// <summary>
        /// 导师ID
        /// </summary>
        public long TeacherID { get; set; }
        /// <summary>
        /// 是否解决
        /// </summary>
        public bool IsClosed { get; set; } = false;
        /// <summary>
        /// 所属课程
        /// </summary>
        public long CourseID { get; set; }
    }
}
